﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace NXBSaiGon
{
    public partial class Temp : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button_Submit_Click(object sender, EventArgs e)
        {
            KD12.WSNXBSaiGon ws = new KD12.WSNXBSaiGon();
            string user = "guest";
            string pass = "Vannhungayxua_1123";
            int kt1 = ws.WSLogin(user, pass);
            int MaSach = int.Parse(TextBox_MaSach.Text);
            int DonGia = int.Parse(TextBox_DonGia.Text);

            int kt = ws.InventoryUpdate(MaSach, DonGia);
            Label_result.Text = kt.ToString();
            Label_Login.Text = kt1.ToString();
        }
    }
}